#include "flash.h"

void flash_data_init()
{
    uint32 buff_data[120];
    flash_read_page(127, FLASH_PAGE_1, buff_data, 120);
    memcpy(track_width, buff_data, 480);
    uint32 buff_data_k[1];
    flash_read_page(126, FLASH_PAGE_1, buff_data_k, 1);
    memcpy(&track_slope, buff_data_k, 4);
    uint32 buff_data_e[1];
    flash_read_page(125, FLASH_PAGE_1, buff_data_e, 1);
    memcpy(&track_error, buff_data_e, 4);
}